<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<body class="hold-transition skin-blue sidebar-mini">

<section class="content-header">
    <h1>设计科室变更查询</h1>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <form id="queryForm" onsubmit="return false;">
                        <div class="row">
                            <div class="form-inline">
                                <div class="form-group">
                                    <label for="query-proCode">项目编号</label>
                                    <input id="query-proCode" type="text" name="proCode" class="form-control"
                                           placeholder="请输入项目编号">
                                </div>
                                <div class="form-group">
                                    <label for="query-proName">项目名称</label>
                                    <input id="query-proName" type="text" name="proName" class="form-control"
                                           placeholder="请输入项目名称">
                                </div>
                                <div class="form-group">
                                    <label for="query-changeValue">变更内容</label>
                                    <input id="query-changeValue" type="text" name="changeValue" class="form-control"
                                           placeholder="请输入变更内容">
                                </div>
                                <div class="form-group">
                                    <label for="query-changeUser">变更人</label>
                                    <input id="query-changeUser" type="text" name="changeUser"
                                           class="form-control"
                                           placeholder="请输入变更人">
                                </div>
                                <div class="form-group">
                                    <label for="query-startTime">变更日期</label>
                                    <input id="query-startTime" type="text" class="form-control datepicker"
                                           name="startTime"
                                           readonly="readonly"/>
                                    <label for="query-endTime"> 至 </label>
                                    <input id="query-endTime" type="text" class="form-control datepicker" name="endTime"
                                           readonly="readonly"/>
                                </div>
                                <button type="button" class="btn btn-success" id="btn-search"
                                        onclick="js.table.search(table)">
                                    <span class="Bold">搜索</span>
                                </button>
                            </div>
                        </div>
                    </form>
                    <!--<button type="button" class="btn btn-success" id="btn-receive"-->
                            <!--onclick="selected()"  shiro:hasPermission="tec:batchRecep:edit">-->
                        <!--<span class="Bold">批量接收</span>-->
                    <!--</button>-->
                </div>
                <div class="box-body">
                    <table id="bootstrap-table"></table>
                </div>
            </div>
        </div>
    </div>
</section>
<div th:include="include :: footer"></div>
<script th:inline="javascript">

    let table;
    $(function () {

        /** 加载列表 */
        table = js.table.init({
            url: ctx + "designTask/query/list",
            columns: [
                {
                    title: '序号', field: 'id', width: '50',
                    formatter: function (value, row, index) {
                        return index + 1;
                    }
                },
                {title: "项目编号", field: 'proCode',width:'100'},
                {title: "项目名称", field: 'proName',width:'300'},
                {title: "变更内容", field: 'changeValue'},
                {title: "变更时间", field: 'changeTime',width:'100'},
                {title: "变更人", field: 'changeUser',width:'100'}
                // {
                //     title: "操作",width:'60',
                //     formatter: function (value, row) {
                //         let actions = [];
                //         actions.push('<a class="btn btn-info btn-xs"  href="' + ctx + 'craft/receive/info/' + row.id + '/'+row.sheetType+'"> 查看</a> ');
                //         return actions.join('');
                //     }
                // }
            ]
        });
    });
</script>
</body>
</html>
